package com.kerraway.config.sharding;

import com.google.common.collect.Lists;
import org.springframework.util.CollectionUtils;

import java.util.Collections;
import java.util.List;

/**
 * @author 小柯
 * @date 2019/07/18
 */
public class Test {

  public static void main(String[] args) {
    List<Integer> available = Lists.newArrayList(1, 2, 3);
    List<Integer> result = Lists.newArrayList(2, 3,4);

//    boolean b = result.removeAll(available);

    boolean b = available.removeAll(result);

    System.out.println("b = " + b);
    System.out.println("available = " + available);
    System.out.println("result = " + result);
  }

}
